package com.hefeng.service.impl;

import com.hefeng.domain.Unit;
import com.hefeng.mapper.UnitMapper;
import com.hefeng.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UnitServiceImpl implements UnitService {
    @Autowired
    private UnitMapper unitMapper;
    @Override
    public int insertUnit(Unit unit) {

        return unitMapper.insertUnit(unit);
    }

    @Override
    public List<Unit> selestlist(Unit unit) {
        return null;
    }

    @Override
    public Integer selectTotal() {
        return null;
    }

    @Override
    public List<Unit> selectPageWithParam(Integer startIdx, Integer size, String unitCode, String unitCreditCode, String unitDetachmentName) {
        return unitMapper.selectPageWithParam(startIdx,size,unitCode,unitCreditCode,unitDetachmentName);
    }

    @Override
    public int selectTotalWithParam(String unitCode, String unitCreditCode, String unitDetachmentName) {
        return unitMapper.selectTotalWithParam(unitCode,unitCreditCode,unitDetachmentName);
    }


}
